God gives us the freedom to do great evil, if we choose. Then he uses his own freedom to create goodness out of that evil, for that is what he chooses.